import { Vue, Component } from 'vue-property-decorator'
import {mapState, mapMutations} from 'vuex'

const debug = require('debug')('log:Index')
@Component({
  computed: {
    ...mapState('test', ['info'])
  },
  methods: {
    ...mapMutations('test', ['upInfo'])
  }
})
class Index extends Vue {
  
  created(){
    console.log((this as any).info)  
  }

  onLoad(query){
    wx.login({
      success (data){
          debug('loginCode', data)
      }
    })
  }
}

export default Index
